/**
 * FROM
 * {
 * department: "2121"
  company: "121"
  email: "1@qq.com"
  phone: "18616361386"
  realname: "1"
  role: "male"
  upload: undefined
  username: "1"
  wxAppId: "1"
  wxOpenId: "1"
  wxWebAppId: "1"
  wxWebOpenId: "1"  
 * }
 * 
 * TO
 * {
 *  username
 *  roleId
 *  name
 *  phone
 *  email
 *  department
 *  post // 单位
 *  photo
 *  wechatOfficialAccount
 *  oaOpenid
 *  wechatMicoappId
 *  maOpenid
 * } 
 * 
 *  
 */
export const AccountUserCreateParamFilter = ({
  wxAppId,
  wxOpenId,
  wxWebAppId,
  wxWebOpenId,
  role,
  company,
  ...restOfAll
}) => ({
  wechatMicoappId: wxAppId,
  maOpenid: wxOpenId,
  wechatOfficialAccount: wxWebAppId,
  oaOpenid: wxWebOpenId,
  roleId: role,
  post:company,
  ...restOfAll,
});
